package com.d0323;

public class Course {
    private String title;
    private int price;

    public Course(String title, int price) {
        this.title = title;
        this.price = price;
    }

    public static void main(String[] args) {
        Course course= new Course("math",100);
        Course course1=new Course("math",100);
        System.out.println(course==course1);
        System.out.println(course.equals(course1));
    }
}
